<div ng-if="pagedata.showserves" class="popup">
			<div class="popup-body">
			<div class="popup-bottom" style="border-radius:0.2rem;background:#f2f2f2">
				<i class="closed icon icon-cuowu" ng-click="pagedata.showserves=false"></i>
				<div class="fui-line" style="width:5rem;margin:0.5rem auto 0 auto">
					<div class="text red bold" style="font-size:0.75rem;background-color:#f2f2f2">选择项目</div>
				</div>
				<div class="fui-fullHigh-group" style="background:#f2f2f2">
					<div class="fui-fullHigh-item menu" style="background:#f2f2f2">
						<nav ng-repeat="value in pagedata.groups" ng-click="pagedata.params.groupid=value.id;tool.get_list('jy_cxjxiche/index/getserve/',true);" class="nav {{pagedata.params.groupid == value.id?'on':''}}">{{value.title}}</nav>
					</div>
					<div class="fui-fullHigh-item container" style="position: relative;background:#f2f2f2;height:20rem;overflow-y:scroll;padding-bottom:2.5rem">
						<div id="container">
						<div class="fui-goods-group container no" id="goods-list-container">
								<div ng-repeat="g in pagedata.list" class="fui-goods-item">
									<div ng-click="pagedata.goods=g;pagedata.showgoods=true" class="image" style="background-image: url('{{g.image}}')">
									</div>
									<div class="detail" style="height:auto">
										<div ng-click="pagedata.goods=g;pagedata.showgoods=true" class="name bold" style="height:1rem">
											{{g.title}}
										</div>
										<div>
										<div class="fui-tag fui-tag-danger" style="background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;width:auto;font-weight:400">{{g.merchname || '平台直营'}}</div>
										</div>
										<div class="fui-cellone" style="padding:0;margin-top:0.5rem">
											<div class="fui-cellone-info bold" style="color:red">￥{{g.price}}</div>
											<div class="fui-cellone-remark noremark">
												 <input type="checkbox" name="checkbox" ng-checked="pagedata.post.goods[g.id]==1" ng-click="pagedata.toogle_mselect($index);" class="fui-radio fui-radio-danger"/>
											</div>
										</div>
									</div>
								</div>
						</div>
						<div class='content-empty' style="margin-top:1rem">
								<div ng-if="!pagedata.list || pagedata.list.length<1">
									<i class='icon icon-cry'></i><div>该分类,没有任何项目！</div>
								</div>
						</div>
						</div>
					</div>
				</div>
				<div class="fui-navbar" style="height:3rem">
					<div class="fui-cellone" style="padding:0.2rem">
						<div class="fui-cellone-text" style='line-height:1.2;font-size:0.7rem'>
							合计:
							<span class="bigprice" style="font-weight:600;color:red"> ￥</span>
							<span class='totalprice bigprice' style="font-size:1rem;font-weight:600;color:red">{{pagedata.totalprice || '0.00'}}</span>
						</div>
						<div class="fui-cellone-remark noremark">
						<div class="fee-tagup-nav" ng-click="pagedata.showserves=false">
							确定服务
						</div>
						</div>
					</div>
				</div>
			</div>
			</div>
</div>
<script>
scope.pagedata.toogle_mselect=function(index){
		var goods=scope.pagedata.list[index];
		var selected = goods.selected==1 ? 0 :1;
		var refreshlist=scope.pagedata.refreshlist?scope.pagedata.refreshlist:[]
		goods.selected=selected;
		refreshlist[goods.id]=goods;
		scope.pagedata.post.goods[goods.id]=selected;
		scope.pagedata.refreshlist=refreshlist;
		scope.pagedata.refresh(refreshlist);
}
scope.pagedata.refresh=function(refreshlist){
		var total=0;
		var totalprice=0;
		refreshlist.forEach(function(value,index){
	　		if(value.selected==1){
				total++;
				totalprice+=value.price*1
			}
	　　});
		console.log(totalprice+'~~'+total)
		scope.pagedata.total=total,
		scope.pagedata.totalprice=totalprice,
		scope.$evalAsync();
}
</script>